﻿using HumanResource2.Views;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HumanResource2
{
    public class HumanResource2_Module : IModule
    {
        private readonly IUnityContainer container;
        private readonly IRegionManager rManager;

        public HumanResource2_Module(IUnityContainer c, IRegionManager r)
        {
            container = c;
            rManager = r;
        }

        public void Initialize()
        {
            this.rManager.RegisterViewWithRegion(RegionNames.RightRegionMenu,
               () => container.Resolve<HumanResourceView>());

            container.RegisterType<object, HumanResource2View>("HumanResource2View");
        }
    }
}
